import request from '@/utils/request'

// 获取商品详情
export const getGoodsDetail = (id) => {
  return request({
    url: '/goods',
    method: 'get',
    params: {
      id
    }
  })
}
export const fetchHotGoodsAPI = (id,type) => {
    return request({
      url:'/goods/hot',
      params:{
        id, 
        type, 
        limit:3
      }
    })
  }